execute if data entity @s SelectedItem{components:{"minecraft:custom_data": {id: "faqv:villager_memory_wiper"}}} if score @s faqv.villager_memory_wiper matches 1.. run function faqv:villager_memory_wiper/wipe_memory